$(function () {
    var inter = setInterval(function () {
        var orderNo = getCookie('nweb_url_order_no');
        if(orderNo !=null && $.trim(orderNo) !=''){
            validateOrderStatus(orderNo);
        }
    },3000);

    function validateOrderStatus(_orderNo) {
        $.ajax({
            url: baseloaction +'/mobile/uc/pay/verificationOrderStatus',
            type:'post',
            dataType:'json',
            data:{
                'orderNo': _orderNo
            },
            success:function (result) {
                if(result.entity='SUCCESS'){
                    if(inter!=null){
                        window.clearInterval(inter);
                    }
                    DeleteCookie('nweb_url_order_no');
                    window.location.href = baseloaction +'/mobile/uc/order/orderList';
                }
            }
        });
    }
});